package com.dit.util;

import com.dit.entity.UserLogin;
import com.vaadin.ui.UI;

public class SessionHelper {
	
	public static void addSessionVariable(UserLogin user) {
		UI.getCurrent().getSession().setAttribute(SessionKey.SESSION_USER, user);
	}
	
	public static Object getSessionUserVariable(String key) {
		return UI.getCurrent().getSession().getAttribute(key);
	}

}
